include('shared.lua');

function ENT:Draw()
	self.Entity:DrawModel();
end

function DrawTimes()
	local bombs = ents.FindByClass("bh_bomb");
	
	for key, val in pairs(bombs) do
		local pos = val:GetPos();
		local scr = pos:ToScreen();
		local time = val:GetNetworkedInt("bombtime");
		local color = team.GetColor(val:GetOwner():Team());
		draw.DrawText(tostring(time), "ScoreboardText", scr.x, scr.y, color, 0);
	end
end
hook.Add("HUDPaint", "BombHUD", DrawTimes);